package animal_part_reform;

class Animal {
    private String name;
    private String species;
    private int age;
    private String animal_area_name;
    public Animal(String name, String species, int age, String animal_area_name) {
        this.name = name;
        this.species = species;
        this.age = age;
        this.animal_area_name = animal_area_name;
    }

    // Getters and setters
    public String getAnimal_area_name() {
        return animal_area_name;
    }
     public void setAnimal_area_name(String animal_area_name) {
        this.animal_area_name = animal_area_name;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecies() {
        return species;
    }

    public void setSpecies(String species) {
        this.species = species;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Animal [name=" + name + ", species=" + species + ", age=" + age + ", area="+animal_area_name+"]";
    }
}
